package kr.pe.johnkim.carrotpoint.mobile.service;

import kr.pe.johnkim.carrotpoint.mobile.dao.CheckMileageMemberDao;
import kr.pe.johnkim.carrotpoint.mobile.domain.CheckMileageMember;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author : johnkim <cale9797@gmail.com / Bettersoft, Inc.>
 * @date: 12. 12. 31.
 */
@Service
public class CheckMileageMemberServiceImpl implements CheckMileageMemberService {

    // SLF4J Logging
    private Logger logger = LoggerFactory.getLogger(CheckMileageMemberServiceImpl.class);

    @Autowired
    private CheckMileageMemberDao checkMileageMemberDao;

    /**
     * 사용자 목록을 가져 온다.
     *
     * @param checkMileageMember
     * @return
     */
    @Override
    @Transactional
    public List<CheckMileageMember> getMemberList(CheckMileageMember checkMileageMember) {
        logger.info("getMemberList");
        return checkMileageMemberDao.getMemberList(checkMileageMember);
    }
}
